import { defineStore } from "pinia"
import { ref } from "vue"

export const useUserStore = defineStore("user", () => {
    const user = ref({});
    const token = ref("");
    return { user, token }
}, {
    persist: {
        enabled: true,
        strategies: [
            {
                storage: sessionStorage,
            },
            {
                // key: "token",
                paths: ["token"],
                storage: localStorage,
            }
        ]
    },
})

